﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<script runat="server">
    protected void Button1_Click(object sender, EventArgs e)
    {

    }

    protected void Button2_Click(object sender, EventArgs e)
    {
        if (CheckBox1.Checked == false)
            lblError.Text = "Debe seleccionar un registro.";
        else
            lblError.Text = "";
    }

    protected void Button3_Click(object sender, EventArgs e)
    {
        if (CheckBox1.Checked == false)
            lblError.Text = "Debe seleccionar un registro.";
        else
        {
            DateTime objDateTime = DateTime.Parse("17/09/2012");
            if (objDateTime < DateTime.Now)
                lblError.Text = "No puede anular un registro cuya fecha es menor a la actual.";
            else
                lblError.Text = "";
        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void Button4_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/ReporteReservasPorDia.aspx");
    }

    protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
    {

    }

    protected void Calendar2_SelectionChanged(object sender, EventArgs e)
    {

    }
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <form id="form1" runat="server">
<div></div>
<div style="font-size: medium; color: #FFFFFF">
    <i><b>REPORTE DE RESERVAS POR DIA</b></i></div>
<div></div>
<div>
    <table>
        <tr>
            <td>
                <span style="color: #FFFFFF">Fecha
                Inicio</td>
            <td>
                <asp:Label ID="Label3" runat="server" Text=":"></asp:Label>
            </td>
            <td>
                <asp:Calendar ID="Calendar1" runat="server" ShowDayHeader="False"></asp:Calendar>
            </td>
            <td>
            </td>
            <td>
                <span style="color: #FFFFFF">Fecha Fin</td>
            <td>
                <asp:Label ID="Label5" runat="server" Text=":"></asp:Label>
                </span>
                </span>
            </td>
            <td>
                <asp:Calendar ID="Calendar2" runat="server" ShowDayHeader="False" 
                    onselectionchanged="Calendar2_SelectionChanged"></asp:Calendar>
            </td>
            <td>
            </td>
            <td><asp:Button ID="Button4" runat="server" Text="Buscar" onclick="Button4_Click" /></td>
        </tr>
    </table>
</div>
<div>
    <br />
    <table>
        <tr>
            <td bgcolor="#CCCCFF" style="font-weight: bold">
            </td>
            <td bgcolor="#CCCCFF" style="font-weight: bold">
                Fecha</td>
            <td bgcolor="#CCCCFF" style="font-weight: bold">
                Cliente</td>
            <td bgcolor="#CCCCFF" style="font-weight: bold">
                NroReserva</td>
            <td bgcolor="#CCCCFF" style="font-weight: bold; width: 56px;">
                Hora</td>
            <td bgcolor="#CCCCFF" style="font-weight: bold; width: 62px;">
                Origen</td>
            <td bgcolor="#CCCCFF" style="font-weight: bold; width: 71px;">
                Destino</td>
            <td bgcolor="#CCCCFF" style="font-weight: bold; width: 70px;">
                Bus</td>
        </tr>
        <tr style="color: #FFFFFF">
            <td>
                <asp:CheckBox ID="CheckBox1" runat="server" 
                            oncheckedchanged="CheckBox1_CheckedChanged" />
            </td>
            <td>
                17/09/2012</td>
            <td>
                Pedro Florez Martínez</td>
            <td>
                R12373</td>
            <td style="width: 56px">
                15:30</td>
            <td style="width: 62px">
                Lima</td>
            <td style="width: 71px">
                Cuzco</td>
            <td style="width: 70px">
                T3E-969</td>
        </tr>
        <tr style="color: #FFFFFF">
            <td>
                <asp:CheckBox ID="CheckBox2" runat="server" />
            </td>
            <td>
                27/09/2012</td>
            <td>
                Martín Santos Lorenzo</td>
            <td>
                R12589</td>
            <td style="width: 56px">
                10:20</td>
            <td style="width: 62px">
                Lima</td>
            <td style="width: 71px">
                Chimbote</td>
            <td style="width: 70px">
                T3E-326</td>
        </tr>
    </table>
    </div>
<div></div>
<div>
            <br />
            <asp:Button ID="Button1" runat="server" Text="Regresar" 
                onclick="Button1_Click" />
            <asp:Button ID="Button3" runat="server" Text="Anular" onclick="Button3_Click" />
</div>
    
<div></div>
<div><asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label></div>
<div></div>
    </form>
</asp:Content>
